package com.zkyc.framework.file.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.exception.ResultCode;
import com.zkyc.framework.common.pojo.Website;
import com.zkyc.framework.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author bing.bai
 * @create 2022/5/27
 */
@Service
@FeignClient(value = Constant.SERVICE_WEBSITE, contextId = "websiteService", fallback = UserServiceFallBack.class)
public interface WebsiteClient {

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/query/{id}")
    ResultVO queryById(@PathVariable("id") Integer id);
}
